/**
 * Search Movie Modal Styles
 * 
 * CSS Module for the search movie modal component.
 * Provides consistent styling with the rest of the application.
 */

.formContainer {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.formTitle {
  font-size: 1.75rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.batchDescription {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.generalError {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.form {
  width: 100%;
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.input,
.textarea {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #0070f3;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.input:disabled,
.textarea:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.inputError {
  border-color: #dc2626 !important;
}

.inputError:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.searchOperatorDescription {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.formActions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e5e9;
}

.button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.saveButton {
  background: #0070f3;
  color: white;
  border: 1px solid #0070f3;
}

.saveButton:hover:not(:disabled) {
  background: #0051cc;
  border-color: #0051cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 112, 243, 0.3);
}

.cancelButton {
  background: #6c757d;
  color: white;
  border: 1px solid #6c757d;
}

.cancelButton:hover:not(:disabled) {
  background: #5a6268;
  border-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.clearButton {
  background: #6c757d;
  color: white;
  border: 1px solid #6c757d;
}

.clearButton:hover:not(:disabled) {
  background: #5a6268;
  border-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .formContainer {
    padding: 1.5rem;
  }

  .formGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .formActions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .formContainer {
    padding: 1rem;
  }

  .formTitle {
    font-size: 1.5rem;
  }

  .formGrid {
    gap: 0.75rem;
  }

  .input,
  .textarea {
    padding: 0.625rem;
    font-size: 0.9rem;
  }

  .button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}